GPS_Init(); while( 1 ) { char str[72]; sprintf( str, "Time: %02d:%02d:%02d", GPS_DATA.byTimeHour, GPS_DATA.byTimeMinute, GPS_DATA.byTimeSecond ); LCD_PutStringXY( 0, 0, str, true ); sprintf( str, "Date: %02d.%02d.20%02d", GPS_DATA.byDateDay, GPS_DATA.byDateMonth, GPS_DATA.byDateYear ); LCD_PutStringXY( 20, 0, str, true ); sprintf( str, "Lat./Lon.: %02d°%02d.%02d' %c %03d°%02d.%02d' %c", GPS_DATA.byLatitudeDegree, GPS_DATA.byLatitudeSeconds, GPS_DATA.byLatitudeDot, GPS_DATA.byLatitudeDirection, GPS_DATA.byLongitudeDegree, GPS_DATA.byLongitudeSeconds, GPS_DATA.byLongitudeDot, GPS_DATA.byLongitudeDirection ); LCD_PutStringXY( 0, 2, str, true ); sprintf( str, "Altitude: %d Speed: %d", GPS_DATA.wAltitude, GPS_DATA.wSpeed_10th ); LCD_PutStringXY( 0, 3, str, true ); sprintf( str, "Quality: %d Number Of Sattelites: %d", GPS_DATA.byQuality, GPS_DATA.byNumberOfSatellites ); LCD_PutStringXY( 0, 5, str, true ); _delay_ms(200); }